package com.hiultra;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(2)
public class TCPStart implements ApplicationRunner {


    @Override
    public void run(ApplicationArguments args){
//        try {
//            System.out.println("启动tcp服务");
//            TCP.setTcpServe("127.0.0.1",8080);
//        }catch (Exception e){
//            System.out.println("启动tcp服务报错："+e);
//        }
    }
}
